﻿using DirectSell.Model.Query;
using DirectSell.Model.User;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Webdiyer.WebControls.Mvc;

namespace Direct.IDAL.Manager.UserCenter
{
    /// <summary>
    /// 升级审核仓储接口层
    /// </summary>
    public interface IUpgradeAuditRepository:IBaseManagerRepository
    {
        #region 查升级申请记录
        /// <summary>
        /// 查升级申请记录
        /// </summary>
        /// <returns></returns>
        Task<PagedList<UserUpgrade>> QueryList(BaseCondition condition);
        #endregion
        /// <summary>
        /// 改审核状态
        /// </summary>
        /// <param name="usercode"></param>
        /// <param name="type"></param>
        /// <param name="hstable"></param>
        void UpdateStates(int id, int type, ref Hashtable hstable);
        /// <summary>
        /// 升级
        /// </summary>
        /// <param name="usercode"></param>
        /// <param name="level"></param>
        /// <param name="hstable"></param>
        void Uplevel(string usercode, int level, ref Hashtable hstable);
    }
}
